import cv2
url = "rtsp://admin:admin123@192.168.1.64/Streaming/Channels/2"
cap = cv2.VideoCapture(url)
ret, frame = cap.read()
while ret:
	ret, frame = cap.read()
	frame = cv2.resize(frame, None, fx=0.6, fy=0.6, interpolation=cv2.INTER_AREA)
	cv2.imshow("frame", frame)
	if cv2.waitKey(1) & 0xFF == ord('q'):
		break
cv2.destroyAllWindows()
cap.release()